import request from '@/utils/request'

// 查询企业微信配置列表
export function listBasicEnterpriseWechatConfig(query) {
  return request({
    url: '/system/basicEnterpriseWechatConfig/list',
    method: 'get',
    params: query
  })
}

// 查询企业微信配置详细
export function getBasicEnterpriseWechatConfig(enterpriseWechatConfigId) {
  return request({
    url: '/system/basicEnterpriseWechatConfig/' + enterpriseWechatConfigId,
    method: 'get'
  })
}

// 新增企业微信配置
export function addBasicEnterpriseWechatConfig(data) {
  return request({
    url: '/system/basicEnterpriseWechatConfig',
    method: 'post',
    data: data
  })
}

// 修改企业微信配置
export function updateBasicEnterpriseWechatConfig(data) {
  return request({
    url: '/system/basicEnterpriseWechatConfig',
    method: 'put',
    data: data
  })
}

// 删除企业微信配置
export function delBasicEnterpriseWechatConfig(enterpriseWechatConfigId) {
  return request({
    url: '/system/basicEnterpriseWechatConfig/' + enterpriseWechatConfigId,
    method: 'delete'
  })
}
